package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.impl.ShopServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("userShopController")
@RequestMapping("/user/shop")
public class ShopController {
    @Autowired
    private ShopServiceImpl shopService;

    @GetMapping("/status")
    public Result<Integer> getShopStatus(){
        System.out.println("shop status = " + shopService.getShopStatus());
        return Result.success(shopService.getShopStatus());
    }
}
